n=eval(input())
i=1
sum=0
while(n):
    sum+=1/i
    n-=1
    i+=2
print("sum = %.6f"%sum)